<h1>Devices to be applied</h1>

<table class="table table-bordered">
  <thead>
    <tr>
      <th>申请人</th>
      <th>系统类型</th>
      <th>系统名称</th>
      <th>系统位数</th>
      <th>浏览器版本</th>
      <th>浏览器位数</th>      
      <th>用途描述</th>
      <th colspan="3"></th>
    </tr>
  </thead>

  <tbody>
    <% @devices.each do |device| %>
      <tr class="<%= cycle('info', '') %>">
        <td><%= device.owner %></td>
        <td><%= device.os_type %></td>
        <td><%= device.os_name %></td>
        <td><%= device.os_bit %></td>
        <td><%= device.browser_version %></td>
        <td><%= device.browser_bit %></td>        
        <td><%= device.description %></td>
        <td><%= link_to '通过', edit_device_path(device), class: 'btn btn-success' %></td>
        <td><%= link_to '删除', device, method: :delete, data: { confirm: 'Are you sure?' }, class: 'btn btn-danger' %></td>
      </tr>
    <% end %>S
  </tbody>
</table>

<br>